#include <iostream>
using namespace std;

class Integer {
  private:
    int a;

  public:
    Integer(int x = 0) { a = x; }
    operator int() { return a; } // 类型转换函数(将类类型转换为整型)
};

int main() {
    Integer a = 6;
    cout << a << endl;

    return 0;
}
